# Maintainer: Bruno Pagani <archange@archlinux.org>
# Contributor: Eli Schwartz <eschwartz@archlinux.org>
# Contributor: Nate Simon <aurpkg (at natesimon.net)>

pkgname=xed
pkgver=3.4.3
pkgrel=1
pkgdesc="A small and lightweight text editor. X-Apps Project."
arch=(loong64 x86_64)
url="https://github.com/linuxmint/${pkgname}"
license=(GPL)
groups=(x-apps)
depends=(gspell gtksourceview4 libpeas xapp)
makedepends=(meson samurai gobject-introspection intltool itstool)
optdepends=('python: required for some plugins')
source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('3d75b7b43294519c2c583a851cd8e7aca9a729146061c95c140acf23c7430316')
b2sums=('5bb90a11dfb3901d63c0b2f6c35c2529ea8ed8fd11c2bc9e8b22a4ec1226f5c609e7913dacdaa3e4d06a51e369706360f18ad3a1205b785e6bce113b2fe7d23e')

build() {
  arch-meson ${pkgname}-${pkgver} build
  samu -C build
}

package(){
  DESTDIR="${pkgdir}" samu -C build install
}
